import { DashboardIcon } from 'tdesign-icons-vue-next';
import { shallowRef } from 'vue';

import Layout from '@/layouts/index.vue';

export default [
  {
    path: '/service',
    component: Layout,
    redirect: '/service/project',
    name: 'service',
    meta: {
      title: {
        zh_CN: '护理服务',
      },
      icon: shallowRef(DashboardIcon),
      orderNo: 0,
    },
    children: [
      {
        path: 'project',
        name: 'serviceproject',
        component: () => import('@/pages/service/project/index.vue'),
        meta: {
          title: {
            zh_CN: '护理项目',
          },
        },
      },
      {
        path: 'plan',
        name: 'serviceplan',
        component: () => import('@/pages/service/plan/index.vue'),
        meta: {
          title: {
            zh_CN: '护理计划',
          },
        },
      },
      {
        path: 'grade',
        name: 'servicegrade',
        component: () => import('@/pages/service/grade/index.vue'),
        meta: {
          title: {
            zh_CN: '护理等级',
          },
        },
      },
    ],
  },
];
